projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d832001
)
centerbox: Avoid accessing unset widgets
author
Timm Bäder
<mail@baedert.org>
Sat, 1 Jul 2017 16:15:41 +0000
(18:15 +0200)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:15 +0000
(21:27 -0400)
gtk/gtkcenterbox.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcenterbox.c
b/gtk/gtkcenterbox.c
index 2e15f04ff774273dea018d09778fc7089230dd63..4a65b9d96aa33fb6fd5dd6888f9695235c208eee 100644
(file)
--- a/
gtk/gtkcenterbox.c
+++ b/
gtk/gtkcenterbox.c
@@
-448,7
+448,7
@@
gtk_center_box_size_allocate (GtkWidget *widget,
for (i = 0; i < 3; i++)
{
- if (gtk_widget_get_valign (child[i]) == GTK_ALIGN_BASELINE)
+ if (
child[i] &&
gtk_widget_get_valign (child[i]) == GTK_ALIGN_BASELINE)
{
int child_min_height, child_nat_height;
int child_min_baseline, child_nat_baseline;